import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import locale from 'element-plus/es/locale/lang/zh-cn' // 中文语言
import 'element-plus/dist/index.css'
import '@/assets/css/index.scss' // global css
import router from './router'
import store from './store'
import './permission' // permission control
// svg图标
import 'virtual:svg-icons-register'
import './style.css'
import App from './App.vue'

const app = createApp(App)
app.use(router)
app.use(store)
// 使用element-plus 并且设置全局的大小
app.use(ElementPlus, {
	locale: locale,
	// 支持 large、default、small
	size: 'default'
})
app.mount('#app')
